
// Copyright (C) Recursion Company. All rights reserved.

#ifndef __VOL_MFC_IP_EDIT_H__
#define __VOL_MFC_IP_EDIT_H__

class IIPEditEventListener : public IBaseEventListener
{
public:
    virtual void OnChange () = 0;
};

class CVWnd_IPEdit : public CIPAddressCtrl
{
    DECLARE_VOL_NATIVE_WND_CLASS_WITHOUT_CONSTRUCT (CVWnd_IPEdit, CIPAddressCtrl, IIPEditEventListener, TRUE)

protected:
    //{{AFX_MSG(CVWnd_IPEdit)
	void OnSetFocus();
	void OnKillFocus();
	void OnChange();
    //}}AFX_MSG
    DECLARE_MESSAGE_MAP ()

public:
    static BOOL_P sCheckIPAddress (const TCHAR* szAddress, INT_P* anIP);

public:
	CVolString m_strIP;
};

#endif
